package com.digitalchina.trade.mapper;

import com.digitalchina.trade.entity.TbRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AccountRoleMapper {
    /**
     * 角色查找
     * @param account 账户id
     * @return  角色
     * */
    List<TbRole> findByUser(@Param("account")int account);
}
